3.1170 \(\int \frac {(b d+2 c d x)^4}{(a+b x+c x^2)^2} \, dx\)

Optimal. Leaf size=76 \[ -12 c d^4 \sqrt {b^2-4 a c} \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}+12 c d^4 (b+2 c x) \]

[Out]

12*c*d^4*(2*c*x+b)-d^4*(2*c*x+b)^3/(c*x^2+b*x+a)-12*c*d^4*arctanh((2*c*x+b)/(-4*a*c+b^2)^(1/2))*(-4*a*c+b^2)^(
1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {686, 692, 618, 206} \[ -12 c d^4 \sqrt {b^2-4 a c} \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}+12 c d^4 (b+2 c x) \]

Antiderivative was successfully verified.

[In]

Int[(b*d + 2*c*d*x)^4/(a + b*x + c*x^2)^2,x]

[Out]

12*c*d^4*(b + 2*c*x) - (d^4*(b + 2*c*x)^3)/(a + b*x + c*x^2) - 12*c*Sqrt[b^2 - 4*a*c]*d^4*ArcTanh[(b + 2*c*x)/
Sqrt[b^2 - 4*a*c]]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 618

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 686

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(d*(d + e*x)^(m - 1)*
(a + b*x + c*x^2)^(p + 1))/(b*(p + 1)), x] - Dist[(d*e*(m - 1))/(b*(p + 1)), Int[(d + e*x)^(m - 2)*(a + b*x +
c*x^2)^(p + 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[2*c*d - b*e, 0] && NeQ[m + 2
*p + 3, 0] && LtQ[p, -1] && GtQ[m, 1] && IntegerQ[2*p]

Rule 692

Int[((d_) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[(2*d*(d + e*x)^(m -
1)*(a + b*x + c*x^2)^(p + 1))/(b*(m + 2*p + 1)), x] + Dist[(d^2*(m - 1)*(b^2 - 4*a*c))/(b^2*(m + 2*p + 1)), In
t[(d + e*x)^(m - 2)*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[
2*c*d - b*e, 0] && NeQ[m + 2*p + 3, 0] && GtQ[m, 1] && NeQ[m + 2*p + 1, 0] && (IntegerQ[2*p] || (IntegerQ[m] &
& RationalQ[p]) || OddQ[m])

Rubi steps

\begin {align*} \int \frac {(b d+2 c d x)^4}{\left (a+b x+c x^2\right )^2} \, dx &=-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}+\left (6 c d^2\right ) \int \frac {(b d+2 c d x)^2}{a+b x+c x^2} \, dx\\ &=12 c d^4 (b+2 c x)-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}+\left (6 c \left (b^2-4 a c\right ) d^4\right ) \int \frac {1}{a+b x+c x^2} \, dx\\ &=12 c d^4 (b+2 c x)-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}-\left (12 c \left (b^2-4 a c\right ) d^4\right ) \operatorname {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x\right )\\ &=12 c d^4 (b+2 c x)-\frac {d^4 (b+2 c x)^3}{a+b x+c x^2}-12 c \sqrt {b^2-4 a c} d^4 \tanh ^{-1}\left (\frac {b+2 c x}{\sqrt {b^2-4 a c}}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 77, normalized size = 1.01 \[ d^4 \left (-\frac {\left (b^2-4 a c\right ) (b+2 c x)}{a+x (b+c x)}-12 c \sqrt {4 a c-b^2} \tan ^{-1}\left (\frac {b+2 c x}{\sqrt {4 a c-b^2}}\right )+16 c^2 x\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[(b*d + 2*c*d*x)^4/(a + b*x + c*x^2)^2,x]

[Out]

d^4*(16*c^2*x - ((b^2 - 4*a*c)*(b + 2*c*x))/(a + x*(b + c*x)) - 12*c*Sqrt[-b^2 + 4*a*c]*ArcTan[(b + 2*c*x)/Sqr
t[-b^2 + 4*a*c]])

________________________________________________________________________________________

fricas [A]  time = 1.21, size = 297, normalized size = 3.91 \[ \left [\frac {16 \, c^{3} d^{4} x^{3} + 16 \, b c^{2} d^{4} x^{2} - 2 \, {\left (b^{2} c - 12 \, a c^{2}\right )} d^{4} x - {\left (b^{3} - 4 \, a b c\right )} d^{4} + 6 \, {\left (c^{2} d^{4} x^{2} + b c d^{4} x + a c d^{4}\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} x^{2} + 2 \, b c x + b^{2} - 2 \, a c - \sqrt {b^{2} - 4 \, a c} {\left (2 \, c x + b\right )}}{c x^{2} + b x + a}\right )}{c x^{2} + b x + a}, \frac {16 \, c^{3} d^{4} x^{3} + 16 \, b c^{2} d^{4} x^{2} - 2 \, {\left (b^{2} c - 12 \, a c^{2}\right )} d^{4} x - {\left (b^{3} - 4 \, a b c\right )} d^{4} - 12 \, {\left (c^{2} d^{4} x^{2} + b c d^{4} x + a c d^{4}\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {\sqrt {-b^{2} + 4 \, a c} {\left (2 \, c x + b\right )}}{b^{2} - 4 \, a c}\right )}{c x^{2} + b x + a}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^4/(c*x^2+b*x+a)^2,x, algorithm="fricas")

[Out]

[(16*c^3*d^4*x^3 + 16*b*c^2*d^4*x^2 - 2*(b^2*c - 12*a*c^2)*d^4*x - (b^3 - 4*a*b*c)*d^4 + 6*(c^2*d^4*x^2 + b*c*
d^4*x + a*c*d^4)*sqrt(b^2 - 4*a*c)*log((2*c^2*x^2 + 2*b*c*x + b^2 - 2*a*c - sqrt(b^2 - 4*a*c)*(2*c*x + b))/(c*
x^2 + b*x + a)))/(c*x^2 + b*x + a), (16*c^3*d^4*x^3 + 16*b*c^2*d^4*x^2 - 2*(b^2*c - 12*a*c^2)*d^4*x - (b^3 - 4
*a*b*c)*d^4 - 12*(c^2*d^4*x^2 + b*c*d^4*x + a*c*d^4)*sqrt(-b^2 + 4*a*c)*arctan(-sqrt(-b^2 + 4*a*c)*(2*c*x + b)
/(b^2 - 4*a*c)))/(c*x^2 + b*x + a)]

________________________________________________________________________________________

giac [A]  time = 0.16, size = 112, normalized size = 1.47 \[ 16 \, c^{2} d^{4} x + \frac {12 \, {\left (b^{2} c d^{4} - 4 \, a c^{2} d^{4}\right )} \arctan \left (\frac {2 \, c x + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{\sqrt {-b^{2} + 4 \, a c}} - \frac {2 \, b^{2} c d^{4} x - 8 \, a c^{2} d^{4} x + b^{3} d^{4} - 4 \, a b c d^{4}}{c x^{2} + b x + a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^4/(c*x^2+b*x+a)^2,x, algorithm="giac")

[Out]

16*c^2*d^4*x + 12*(b^2*c*d^4 - 4*a*c^2*d^4)*arctan((2*c*x + b)/sqrt(-b^2 + 4*a*c))/sqrt(-b^2 + 4*a*c) - (2*b^2
*c*d^4*x - 8*a*c^2*d^4*x + b^3*d^4 - 4*a*b*c*d^4)/(c*x^2 + b*x + a)

________________________________________________________________________________________

maple [A]  time = 0.04, size = 133, normalized size = 1.75 \[ \frac {8 a \,c^{2} d^{4} x}{c \,x^{2}+b x +a}-\frac {2 b^{2} c \,d^{4} x}{c \,x^{2}+b x +a}+\frac {4 a b c \,d^{4}}{c \,x^{2}+b x +a}-\frac {b^{3} d^{4}}{c \,x^{2}+b x +a}+16 c^{2} d^{4} x -12 \sqrt {4 a c -b^{2}}\, c \,d^{4} \arctan \left (\frac {2 c x +b}{\sqrt {4 a c -b^{2}}}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((2*c*d*x+b*d)^4/(c*x^2+b*x+a)^2,x)

[Out]

16*d^4*c^2*x+8*d^4/(c*x^2+b*x+a)*a*c^2*x-2*d^4/(c*x^2+b*x+a)*b^2*c*x+4*d^4/(c*x^2+b*x+a)*a*b*c-d^4/(c*x^2+b*x+
a)*b^3-12*d^4*c*(4*a*c-b^2)^(1/2)*arctan((2*c*x+b)/(4*a*c-b^2)^(1/2))

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)^4/(c*x^2+b*x+a)^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(4*a*c-b^2>0)', see `assume?` f
or more details)Is 4*a*c-b^2 positive or negative?

________________________________________________________________________________________

mupad [B]  time = 0.49, size = 143, normalized size = 1.88 \[ \frac {x\,\left (8\,a\,c^2\,d^4-2\,b^2\,c\,d^4\right )-b^3\,d^4+4\,a\,b\,c\,d^4}{c\,x^2+b\,x+a}+16\,c^2\,d^4\,x-12\,c\,d^4\,\mathrm {atan}\left (\frac {12\,c^2\,d^4\,x\,\sqrt {4\,a\,c-b^2}+6\,b\,c\,d^4\,\sqrt {4\,a\,c-b^2}}{24\,a\,c^2\,d^4-6\,b^2\,c\,d^4}\right )\,\sqrt {4\,a\,c-b^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*d + 2*c*d*x)^4/(a + b*x + c*x^2)^2,x)

[Out]

(x*(8*a*c^2*d^4 - 2*b^2*c*d^4) - b^3*d^4 + 4*a*b*c*d^4)/(a + b*x + c*x^2) + 16*c^2*d^4*x - 12*c*d^4*atan((12*c
^2*d^4*x*(4*a*c - b^2)^(1/2) + 6*b*c*d^4*(4*a*c - b^2)^(1/2))/(24*a*c^2*d^4 - 6*b^2*c*d^4))*(4*a*c - b^2)^(1/2
)

________________________________________________________________________________________

sympy [B]  time = 1.09, size = 173, normalized size = 2.28 \[ 16 c^{2} d^{4} x + c d^{4} \sqrt {- 144 a c + 36 b^{2}} \log {\left (x + \frac {6 b c d^{4} - c d^{4} \sqrt {- 144 a c + 36 b^{2}}}{12 c^{2} d^{4}} \right )} - c d^{4} \sqrt {- 144 a c + 36 b^{2}} \log {\left (x + \frac {6 b c d^{4} + c d^{4} \sqrt {- 144 a c + 36 b^{2}}}{12 c^{2} d^{4}} \right )} + \frac {4 a b c d^{4} - b^{3} d^{4} + x \left (8 a c^{2} d^{4} - 2 b^{2} c d^{4}\right )}{a + b x + c x^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((2*c*d*x+b*d)**4/(c*x**2+b*x+a)**2,x)

[Out]

16*c**2*d**4*x + c*d**4*sqrt(-144*a*c + 36*b**2)*log(x + (6*b*c*d**4 - c*d**4*sqrt(-144*a*c + 36*b**2))/(12*c*
*2*d**4)) - c*d**4*sqrt(-144*a*c + 36*b**2)*log(x + (6*b*c*d**4 + c*d**4*sqrt(-144*a*c + 36*b**2))/(12*c**2*d*
*4)) + (4*a*b*c*d**4 - b**3*d**4 + x*(8*a*c**2*d**4 - 2*b**2*c*d**4))/(a + b*x + c*x**2)

________________________________________________________________________________________